package com.meta.framework.util;

import com.meta.framework.common.utils.StringUtils;

/**
 * java类简单作用描述
 *
 * @Title:
 * @Package: com.meta.framework.util.
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2024-04-23 14:33
 * @Version: v2.0
 */
public class UserUtil {

	public static String defaultUserName(String mobile){
		if(StringUtils.isEmpty(mobile)){
			return "用户";
		}
		if(mobile.length() <= 3){
			return "用户" + mobile;
		}
		return "用户" + mobile.substring(mobile.length() - 4, mobile.length());
	}
}
